
.game-container {
  min-height: 100vh;
  width: 100%;
  background-image: url('/api/placeholder/1920/1080'); /* 这里替换为你的背景图片URL */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  font-family: 'Arial', sans-serif;
  color: #fff;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* 登录页样式 */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.logo {
  margin-bottom: 2rem;
}

.logo-img {
  width: 128px;
  height: 72px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.6));
}

.game-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #4f46e5, #818cf8);
  background-clip: text; /* 标准属性 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.slogan {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.connect-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #4f46e5, #818cf8);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.connect-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-btn:hover::before {
  opacity: 1;
}

.metamask-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  margin-right: 8px;
  vertical-align: middle;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.02 7.75l-9.37-6.94L11 0l-8.6 7.75l2.35 5.59l-.98.59l1.37 1.18l-1.18.98l1.37 1.57l-.98.78l2.16 2.75l9.96 3.92l8.43-3.92l-1.76-14.24zM18.48 7l.59 5.1h-4.32l.39-6.47l3.34 1.37zm-10.01-.17L9 11.51H4.5l.96-4.9l3 .22zm-.77 6.27H3l2.94 3.53l-.2-3.53zm-.76-7.25L8.82 2l-.58 3.53l-2.94-.98zm8.32-1.37l-.77-2.94l3.14.98l-2.37 1.96zM9.21 2.39l1.17 2.75l-3.92.78l2.75-3.53zM8.63 13.1l.98 7.06l-5.7-2.16l4.72-4.9zm1.96-.2h3.73l-.8 3.93H10L10.59 13zm4.7 0h4.14l-3.14 3.14l-.98-3.14zm.2 6.87l-.59-2.35l2.75.98l-2.16 1.37zm1.18-9.6l-.59-4.33l3.73 1.57l-3.14 2.76zm.78 3.72l4.32-.58l-1.37 2.94l-2.95-2.36zm-6.85-10.4l2.16 3.14l-3.54-1.17l1.38-1.97zm-3.92 18.1l3.92 1.38l6.28-2.36l-10.2.98z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.02 7.75l-9.37-6.94L11 0l-8.6 7.75l2.35 5.59l-.98.59l1.37 1.18l-1.18.98l1.37 1.57l-.98.78l2.16 2.75l9.96 3.92l8.43-3.92l-1.76-14.24zM18.48 7l.59 5.1h-4.32l.39-6.47l3.34 1.37zm-10.01-.17L9 11.51H4.5l.96-4.9l3 .22zm-.77 6.27H3l2.94 3.53l-.2-3.53zm-.76-7.25L8.82 2l-.58 3.53l-2.94-.98zm8.32-1.37l-.77-2.94l3.14.98l-2.37 1.96zM9.21 2.39l1.17 2.75l-3.92.78l2.75-3.53zM8.63 13.1l.98 7.06l-5.7-2.16l4.72-4.9zm1.96-.2h3.73l-.8 3.93H10L10.59 13zm4.7 0h4.14l-3.14 3.14l-.98-3.14zm.2 6.87l-.59-2.35l2.75.98l-2.16 1.37zm1.18-9.6l-.59-4.33l3.73 1.57l-3.14 2.76zm.78 3.72l4.32-.58l-1.37 2.94l-2.95-2.36zm-6.85-10.4l2.16 3.14l-3.54-1.17l1.38-1.97zm-3.92 18.1l3.92 1.38l6.28-2.36l-10.2.98z'/%3E%3C/svg%3E") no-repeat center center;
}

.error-message {
  color: #ef4444;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-info {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* 游戏主界面样式 */
.game-dashboard {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-header {
  background: rgba(53, 58, 68, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* .logo-small img {
  width: 32px;
  height: 32px;
} */

.logo-small span {
  font-weight: 600;
  font-size: 1.2rem;
  background: linear-gradient(45deg, #d1d1f0, #b5bdee);
  background-clip: text; /* 标准属性 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  background: transparent;
  border-bottom: none;
}

.el-menu--horizontal > .el-menu-item {
  height: 50px;
  line-height: 50px;
  color: #b8d1ee;
  font-weight: 500;
  border-radius: 10px;
  overflow: hidden; /* 防止子元素溢出 */
}

.el-menu--horizontal > .el-menu-item.is-active {
  color: #c885f5;
  border-bottom-color: #cacceb;
}

.el-menu--horizontal > .el-menu-item:hover {
  color: #c395d8;
}

.wallet-info {
  display: flex;
  align-items: center;
}

.wallet-display {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-display:hover {
  background: rgba(51, 65, 85, 0.8);
}

.wallet-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #818cf8;
  margin-right: 8px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6h-7c-2.21 0-4 1.79-4 4v4.97L2 10l-2 1l11 9 11-9V6zM20 8v7.97l-9 7.03L9 13.97V10c0-1.1.9-2 2-2h9z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6h-7c-2.21 0-4 1.79-4 4v4.97L2 10l-2 1l11 9 11-9V6zM20 8v7.97l-9 7.03L9 13.97V10c0-1.1.9-2 2-2h9z'/%3E%3C/svg%3E") no-repeat center center;
}

.wallet-address {
  font-family: monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.game-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.welcome-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(45, 212, 191, 0.2));
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.welcome-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #4f46e5, #818cf8);
  background-clip: text; /* 标准属性 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-banner p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.stats-overview {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.treasure-icon,
.level-icon,
.rank-icon {
  width: 32px;
  height: 32px;
  background-color: #818cf8;
  margin-bottom: 0.5rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H3V6h18v12z'/%3E%3Cpath d='M16.75 10.25l-1.75 2.5l-1.75-2.5h3.5zM10.25 10.25l-1.75 2.5l-1.75-2.5h3.5zM16.75 13.75l-1.75-2.5l-1.75 2.5h3.5zM10.25 13.75l-1.75-2.5l-1.75 2.5h3.5z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H3V6h18v12z'/%3E%3Cpath d='M16.75 10.25l-1.75 2.5l-1.75-2.5h3.5zM10.25 10.25l-1.75 2.5l-1.75-2.5h3.5zM16.75 13.75l-1.75-2.5l-1.75 2.5h3.5zM10.25 13.75l-1.75-2.5l-1.75 2.5h3.5z'/%3E%3C/svg%3E") no-repeat center center;
}

.level-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center center;
}

.rank-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E") no-repeat center center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-label1 {
  font-size: 0.9rem;
  color: #e9f0f8;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-tile {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(79, 70, 229, 0.3);
}

.market-icon,
.inventory-icon,
.quest-icon {
  width: 48px;
  height: 48px;
  background-color: #818cf8;
  margin-bottom: 1rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5H5C2.79 5 1 6.79 1 9v10c0 2.21 1.79 4 4 4h14c2.21 0 4-1.79 4-4V9c0-2.21-1.79-4-4-4zm-7 14c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E") no-repeat center center;
}

.feature-tile h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-tile p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.feature-tile .el-button {
  margin-top: auto;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .game-nav {
    display: none;
  }
  
  .stats-overview {
    flex-direction: column;
    gap: 1rem;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-content {
    padding: 1rem;
  }
}

/* 动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.connect-btn {
  animation: pulse 2s infinite;
}

/* 优化Element Plus组件样式 */
:deep(.el-button--primary) {
  background: linear-gradient(45deg, #4f46e5, #818cf8);
  border: none;
}

:deep(.el-button--primary:hover) {
  background: linear-gradient(45deg, #4338ca, #6366f1);
  transform: translateY(-2px);
}

:deep(.el-dropdown-menu) {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:deep(.el-dropdown-menu__item) {
  color: #e2e8f0;
}

:deep(.el-dropdown-menu__item:hover) {
  background-color: rgba(79, 70, 229, 0.2);
  color: #818cf8;
}

:deep(.el-dropdown-menu__item--divided:before) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 主题自定义 */
:root {
  --el-color-primary: #4f46e5;
  --el-color-primary-light-3: #818cf8;
  --el-color-primary-light-5: #a5b4fc;
  --el-color-primary-light-7: #c7d2fe;
  --el-color-primary-light-9: #e0e7ff;
}
